﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="UpHeadImg.aspx.cs" Inherits="DaoYou.Web.Account.UpHeadImg" %>

<%@ Register Src="../Controller/ApplyDaoYou.ascx" TagName="ApplyDaoYou" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="<%= Page.ResolveUrl("~/js/jquery-ui-1.8.13.custom.min.js") %>"
        type="text/javascript"></script>
    <script src="<%= Page.ResolveUrl("~/js/ajaxFileUpload.js") %>"
        type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#divUp").load("uploadAvatar.htm?n=" + Math.random());
        })
        function OnAvatarUploaded(file) {
            $("#img").attr("src", file.replace("~", "..") + "?n=" + Math.random()); //防止缓存
        }

        $(document).ready(function () {
            $("#img").attr("src", "<%= this.CurrentAvatarPhoto %>");
        }); 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <section id="content-container" class="clearfix">
        <div id="main-wrap" class="clearfix">
            <aside class="subnav_cont sidebar">
                <div class="subnav">
                    <ul>
                        <li><a href="UserCenter.aspx"><span>我的基本信息</span></a></li>
                        <li class="current_subpage"><a href="UpHeadImg.aspx"><span>我的头像</span></a></li>
                        <% if (base.UserType == 1)
                           {%>
                        <li><a href="UserGuiderInfo.aspx"><span>我的导游信息</span></a></li>
                        <%} %>
                        <li><a href="UserOutPlan.aspx"><span>我的出行计划</span></a></li>
                        <li><a href="UserTimeoutOrder.aspx"><span>我的已出行订单</span></a></li>
                        <li><a href="UserOrder.aspx"><span>我的未出行订单</span></a></li>
                        <% if (base.UserType != 1)
                           {%>
                        <li>
                            <uc1:ApplyDaoYou ID="ApplyDaoYou1" runat="server" />
                        </li>
                        <%} %>
                    </ul>
                </div>
                <!-- END subnav -->
            </aside>
            <div class="page_content_right sub-content">
                <div class="large-callout">
                    <div>
                        <img src="" id="img" style="width: 175px; height: 175px" />
                    </div>
                    <br />
                    <div id="divUp">
                    </div>
                </div>
            </div>
        </div>
    </section>
    <script type="text/javascript" src="<%= Page.ResolveUrl("~/js/custom-main.js")%>"></script>
</asp:Content>
